j5(document).ready(function() {
		
//PORTFOLIO NAVIGATION
	
	j5("ul.tab-nav").tabs(".tabs > .tab-panels > div", {effect: 'fade'});


// PORTFOLIO HOVER EFFECT	

 j5('ul.portfolio-thumbs li').hover(function(){  
         j5(".overlay", this).stop().animate({top:'0px'},{queue:false,duration:300});  
     }, function() {  
        j5(".overlay", this).stop().animate({top:'190px'},{queue:false,duration:300});  
    });  


//ANYTHING SLIDER NAVIGATION BUTTONS
	
	var q = ["#cont-prev", "#cont-next"];
	var buttons = q.join(", ");
	
	j5("#featured").hover( function() {
		j5(buttons).stop().show()
	}).mouseleave( function() {
		j5(buttons).stop().hide()
	});
	
//TOGGLE PANELS

	j5('.toggle-content').hide();  //hides the toggled content, if the javascript is disabled the content is visible

	j5('.toggle-link').click(function () {
		if (j5(this).is('.toggle-close')) {
			j5(this).removeClass('toggle-close').addClass('toggle-open').parent().next('.toggle-content').slideToggle(300);
			return false;
		} 
		
		else {
			j5(this).removeClass('toggle-open').addClass('toggle-close').parent().next('.toggle-content').slideToggle(300);
			return false;
		}
	});

// TOOLTIPS

j5(".social-links li[title]").tooltip({
	effect: 'fade',
	fadeInSpeed: 300,
	fadeOutSpeed: 200,
	opacity: 0.9
});	

	
j5('.tagline-btn').hover(
  function () {
    j5('.main').animate({marginRight: "0px"}, 200);
  }, 
  function () {
    j5('.main').animate({marginRight: "2px"}, 200);
  }
);

j5(function() {
	j5('.box-img').animate({"opacity": 1 }); // sets the opacity to 50% to all images inside the div with the class of .gallery
	
	j5('.box-img').hover(function() {
		j5(this).stop().animate({ "opacity": .4 });
		}, function() {
			j5(this).stop().animate({ "opacity": 1 });
		});
});


j5("#navigation ul").css({display: "none"}); // Opera Fix
j5(" #navigation li").hover(function(){
		j5(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		j5(this).find('ul:first').css({visibility: "hidden"});
		});
				
});	//END of jQuery





